package com.ruoyi.factory.archive.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 自定义档案对象 t_archive
 *
 * @author ruoyi
 * @date 2023-07-25
 */
public class Archive extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String pkDefdoc;

    /** 档案类型名称 */
    @Excel(name = "档案类型名称")
    private String typeName;

    /** 档案类型编码 */
    @Excel(name = "档案类型编码")
    private String typeCode;

    /** 组织 */
    @Excel(name = "组织")
    private String pkOrg;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 助记码 */
    @Excel(name = "助记码")
    private String mnecode;

    /** 上级档案 */
    @Excel(name = "上级档案")
    private String pid;

    /** 上级档案编码 */
    @Excel(name = "上级档案编码")
    private String pcode;

    /** 启用状态 */
    @Excel(name = "启用状态")
    private String enablestate;

    /** 自定义项1 */
    @Excel(name = "自定义项1")
    private String def1;

    /** 自定义项2 */
    @Excel(name = "自定义项2")
    private String def2;

    /** 自定义项3 */
    @Excel(name = "自定义项3")
    private String def3;

    /** 自定义项4 */
    @Excel(name = "自定义项4")
    private String def4;

    /** 自定义项5 */
    @Excel(name = "自定义项5")
    private String def5;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationtime;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifier;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedtime;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    public void setPkDefdoc(String pkDefdoc)
    {
        this.pkDefdoc = pkDefdoc;
    }

    public String getPkDefdoc()
    {
        return pkDefdoc;
    }
    public void setTypeName(String typeName)
    {
        this.typeName = typeName;
    }

    public String getTypeName()
    {
        return typeName;
    }
    public void setTypeCode(String typeCode)
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode()
    {
        return typeCode;
    }
    public void setPkOrg(String pkOrg)
    {
        this.pkOrg = pkOrg;
    }

    public String getPkOrg()
    {
        return pkOrg;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setMnecode(String mnecode)
    {
        this.mnecode = mnecode;
    }

    public String getMnecode()
    {
        return mnecode;
    }
    public void setPid(String pid)
    {
        this.pid = pid;
    }

    public String getPid()
    {
        return pid;
    }
    public void setPcode(String pcode)
    {
        this.pcode = pcode;
    }

    public String getPcode()
    {
        return pcode;
    }
    public void setEnablestate(String enablestate)
    {
        this.enablestate = enablestate;
    }

    public String getEnablestate()
    {
        return enablestate;
    }
    public void setDef1(String def1)
    {
        this.def1 = def1;
    }

    public String getDef1()
    {
        return def1;
    }
    public void setDef2(String def2)
    {
        this.def2 = def2;
    }

    public String getDef2()
    {
        return def2;
    }
    public void setDef3(String def3)
    {
        this.def3 = def3;
    }

    public String getDef3()
    {
        return def3;
    }
    public void setDef4(String def4)
    {
        this.def4 = def4;
    }

    public String getDef4()
    {
        return def4;
    }
    public void setDef5(String def5)
    {
        this.def5 = def5;
    }

    public String getDef5()
    {
        return def5;
    }
    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }
    public void setCreationtime(Date creationtime)
    {
        this.creationtime = creationtime;
    }

    public Date getCreationtime()
    {
        return creationtime;
    }
    public void setModifier(String modifier)
    {
        this.modifier = modifier;
    }

    public String getModifier()
    {
        return modifier;
    }
    public void setModifiedtime(Date modifiedtime)
    {
        this.modifiedtime = modifiedtime;
    }

    public Date getModifiedtime()
    {
        return modifiedtime;
    }
    public void setMemo(String memo)
    {
        this.memo = memo;
    }

    public String getMemo()
    {
        return memo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("pkDefdoc", getPkDefdoc())
                .append("typeName", getTypeName())
                .append("typeCode", getTypeCode())
                .append("pkOrg", getPkOrg())
                .append("code", getCode())
                .append("name", getName())
                .append("mnecode", getMnecode())
                .append("pid", getPid())
                .append("pcode", getPcode())
                .append("enablestate", getEnablestate())
                .append("def1", getDef1())
                .append("def2", getDef2())
                .append("def3", getDef3())
                .append("def4", getDef4())
                .append("def5", getDef5())
                .append("creator", getCreator())
                .append("creationtime", getCreationtime())
                .append("modifier", getModifier())
                .append("modifiedtime", getModifiedtime())
                .append("memo", getMemo())
                .toString();
    }
}
